#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtGui>
#include "playertable.h"
#include "gamedialog.h"
#include "gamephasecontroller.h"

class GameScene : public QGraphicsScene
{
    Q_OBJECT
public:
    explicit GameScene(int x, int y, int w, int h);
protected:
    void drawBackground(QPainter *painter, const QRectF &rect);
};

class MainWindow : public QMainWindow
{
    Q_OBJECT
protected:
    void createScene();
    void createView();

    GameScene* scene;
    QGraphicsView* view;
    QGraphicsItem* game;
    PlayerTable* table;
    GamePhaseController* controller;
public:
    MainWindow(QWidget *parent = 0);
    ~MainWindow();

    static const int SCENE_WIDTH=1024;
    static const int SCENE_HEIGHT=600;
    static const int SCENE_CENTER_X = SCENE_WIDTH/2;
    static const int SCENE_CENTER_Y = SCENE_HEIGHT/2;
};

#endif // MAINWINDOW_H
